// pages/business/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderList:[
      {name:'待配送',num:6,img:'../../static/images/index/daipeisong.png',url:'../distribution/index'},
      {name:'待收货',num:1,img:'../../static/images/index/daishouhuo.png',url:'../received/index'},
      {name:'已完成',num:0,img:'../../static/images/index/yiwancheng.png',url:'../completed/index'},
      {name:'退款/取消',num:0,img:'../../static/images/index/quxiao.png',url:'../cancel/index'}
    ],
    shopList:[
      {name:'账户结算',img:'../../static/images/index/jiesuan.png',url:'../accountSettle/index'},
      {name:'商铺管理',img:'../../static/images/index/shangpu.png',url:'../shopMent/index'},
      {name:'商品管理',img:'../../static/images/index/shangpin.png',url:'../allProducts/index'},
      {name:'商品规格',img:'../../static/images/index/guige.png',url:'../productSpec/index'},
      {name:'创建分类',img:'../../static/images/index/chuangjian.png'},
      {name:'推广店铺',img:'../../static/images/index/tuiguang.png'},
      {name:'核销券',img:'../../static/images/index/hexiao.png'},
      {name:'数据趋势',img:'../../static/images/index/qushi.png'},
      {name:'店铺海报',img:'../../static/images/index/haibao.png'},
      {name:'爆款橱窗',img:'../../static/images/index/baokuan.png'}
    ],
    pinglunList:[
      {name:'评论管理',img:'../../static/images/index/pinglun.png',url:'../comment/index'},
      {name:'发奖管理',img:'../../static/images/index/fajiang.png'}
    ],
    activeList:[
      {name:'店铺活动',img:'../../static/images/index/dianpu.png'},
      {name:'平台活动',img:'../../static/images/index/pingtai.png'},
      {name:'业务员',img:'../../static/images/index/yewuyuan.png'},
      {name:'粉丝',img:'../../static/images/index/fensi.png',url:'../fans/index'},
      {name:'抽奖',img:'../../static/images/index/choujiang.png'}
    ]
  },
  goUrl(event){
    var url=event.currentTarget.dataset.url
    wx.navigateTo({
      url
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})